dsh-harmony: Runtime Patching, Replacement, and Decoration of DSH Plugins

dsh-harmony is an MIT-licensed runtime Patch coordination library (v0.7.3) maintained by memorax-ai. It performs in-memory source transformations on DeepSeek Harness plugins without forking or modifying disk-installed packages. Patches are applied via TSQuery to locate ASTs and MagicString to rewrite source code, supporting provider ordering, composite patches, browser-style cascading, and version health checks. Installation requires Node.js ^22.22.3 or >=24.11.1, and after a global install with @deepseek-ai/dsh, management is handled through Settings → Harmony or the dsh harmony CLI. It is designed for DSH plugin developers who need to extend or modify internal behaviors when extension points are insufficient; users must review source code before use, as upgrades to the target plugin may cause Patches to become invalid.

Read More